<template>
	<view class="content">
		<video id="myVideo" class="video" :poster="poster" :src="src"  controls></video>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				title : '',
				content:'',
				poster:'',
				danmuList:[],
				src:'',
				uploadsName:'',
				fileName:'',
				fileNature:'',
				size:'',
				showVideo:false
			}
		},
		methods: {
			
		},
		onLoad(e) {
			var serverUrl=this.serverUrl;
			uni.request({
				url: serverUrl + 'app/findSysFileById?id='+e.fileid,
				method: 'GET',
				data: {},
				success: res => {
					var result=res.data;
					console.log(result);
					this.title=result.fileTitle;
					this.content=result.fileRemark?result.fileRemark:result.fileName;
					this.src=serverUrl+'media/'+result.fileUuid;
					this.poster= serverUrl+'media/shortImage/'+result.fileUuid+'.png';
					this.uploadsName=result.uploadsName;
					this.fileName=result.fileName;
					this.size=result.fileSize;
					this.fileNature=result.fileNature.name;
				}
			});
		}
	}
</script>

<style>
	.video {
		width: 100%;
		
	}

</style>
